import type { DynamicField } from "@/data/wbsFields.ts";

export const tableFields: DynamicField[] = [
  {
    id: 0,
    name: "id",
    field: "id",
    uiType: "text",
    invisible: false,
  },
  {
    id: 1,
    name: "名称",
    width: 250,
    field: "name",
    uiType: "text",
    invisible: true,
  },
  {
    id: 2,
    name: "引用项目类型（数量）",
    field: "count",
    uiType: "text",
    invisible: true,
  },
  {
    id: 5,
    name: "创建人",
    field: "creatorName",
    uiType: "user",
    invisible: true,
  },
  {
    id: 6,
    name: "创建时间",
    field: "createTime",
    uiType: "date",
    invisible: true,
  },
];

export const dialogFields: DynamicField[] = [
  {
    id: 1,
    name: "id",
    field: "id",
    type: "text",
    invisible: false,
  },
  {
    id: 2,
    name: "模板名称",
    field: "name",
    type: "text",
    invisible: true,
    rules: [
      {
        required: true,
        message: "请输入模板名称",
        trigger: "blur",
      },
    ],
  },
];
